//loading.vue
<template>
  <div class="loading-box" v-show="show">
    <div class="loading-mask"></div>
    <img class="loading-content" src="../assets/img/lodingAjax.gif" alt="" />
  </div>
</template>

<script>
export default {
  props: {
    show: Boolean
  }
};
</script>
<style scoped>
.loading-box {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999999999999999999;
}
.loading-mask {
  z-index: 1000;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(161, 159, 159, 0.432);
}
.loading-content {
  display: block;
  width: 100px;
  height: 100px;
}
</style>
